home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5215 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: ODBC in Console Applicatoin ?
  5. Date: 3 Feb 1996 00:44:03 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4eub4j$2k3@news1.usa.pipeline.com>
  8. References: <311202A1.6F84@cmt.lpr.mail.carel.fi>
  9. NNTP-Posting-Host: 38.8.60.7
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete)
  13. X-Newsreader: Pipeline USA v3.3.0
  14.  
  15. On Feb 02, 1996 14:25:05 in article <Re: ODBC in Console Applicatoin ?>,
  16. 'Ari Lukumies <aril@cmt.lpr.mail.carel.fi>' wrote: 
  17.  
  18.  
  19. >I think, if you use ODBC API calls, that can be done. But if you use  
  20. >MFC (wrapper above ODBC API calls), you'll have to stick to GUI  
  21. >applications. If I remember correctly, MFC's CDatabase refuses to 
  22. >open a database (that mdb file) if there is no graphical parent 
  23. >window present. 
  24. This appears to be correct.  In attempting to respond to the 
  25. original post, I quickly threw a console app together that used  
  26. CDatabase and Crecordset MFC classes to access a database. 
  27. It gave a protection fault.  I did not want to spend the time to find 
  28. out why.  
  29.  
  30. -- 
  31. Pete Grant 
  32. Kalevi, Inc. 
  33. Object Oriented Software Development
  34.